import request from '@/utils/request'

// 查询打卡活动订单列表
export function activityOrderList(params) {
  return request({
    url: '/shenye/punch/activity/order/list',
    method: 'get',
    params
  })
}
// 查询打卡活动订单统计
export function activityOrderCount(params) {
  return request({
    url: '/shenye/punch/activity/order/count',
    method: 'get',
    params
  })
}
// 退款信息查询
export function activityOrderRefund(params) {
  return request({
    url: '/shenye/punch/activity/order/refund',
    method: 'get',
    params
  })
}
// 确认退款
export function orderConfirmRefund(params) {
  return request({
    url: '/shenye/punch/activity/order/confirm/refund',
    method: 'post',
    params
  })
}
// 查询数字宝箱订单详情
export function orderBoxDetail(id) {
  return request({
    url: '/shenye/punch/activity/order/box/detail/' + id,
    method: 'get',
  })
}
// 查询第三方订单详情
export function orderThirdPartyDetail(id) {
  return request({
    url: '/shenye/punch/activity/order/third/party/detail/' + id,
    method: 'get',
  })
}
//中台-退款申请
export function refundApply(orderId) {
  return request({
    url: `/shenye/punch/activity/order/refund/apply/${orderId}`,
    method: 'put',
  })
}
//退款信息
export function refundInfo(orderId) {
  return request({
    url: `/shenye/punch/activity/order/refundInfo/${orderId}`,
    method: 'get',
  })
}
//中台-中台退券审核
export function orderRefund(data) {
  return request({
    url: '/shenye/punch/activity/order/refund/examine',
    method: 'post',
    data
  })
}

